.class public Lcom/nemustech/tiffany/world/TFObjectContainer;
.super Ljava/lang/Object;
.source "TFObjectContainer.java"

# interfaces
.implements Ljava/lang/Cloneable;


# static fields
.field static final compareAxisZ:Ljava/util/Comparator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Comparator",
            "<",
            "Lcom/nemustech/tiffany/world/TFObjectContainer;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private mObject:Lcom/nemustech/tiffany/world/TFObject;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 54
    new-instance v0, Lcom/nemustech/tiffany/world/TFObjectContainer$1;

    invoke-direct {v0}, Lcom/nemustech/tiffany/world/TFObjectContainer$1;-><init>()V

    sput-object v0, Lcom/nemustech/tiffany/world/TFObjectContainer;->compareAxisZ:Ljava/util/Comparator;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 6
    iput-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    .line 9
    iput-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    .line 10
    return-void
.end method

.method public constructor <init>(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 1
    .parameter "object"

    .prologue
    .line 12
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 6
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    .line 13
    invoke-virtual {p0, p1}, Lcom/nemustech/tiffany/world/TFObjectContainer;->setObject(Lcom/nemustech/tiffany/world/TFObject;)V

    .line 14
    return-void
.end method


# virtual methods
.method public clearObject()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 43
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    if-eqz v0, :cond_0

    .line 44
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->setWrapperObject(Lcom/nemustech/tiffany/world/TFObjectContainer;)V

    .line 45
    iput-object v1, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    .line 47
    :cond_0
    return-void
.end method

.method public clone()Ljava/lang/Object;
    .locals 3

    .prologue
    .line 19
    :try_start_0
    invoke-super {p0}, Ljava/lang/Object;->clone()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/tiffany/world/TFObjectContainer;

    .line 20
    .local v1, oc:Lcom/nemustech/tiffany/world/TFObjectContainer;
    iget-object v2, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    if-eqz v2, :cond_0

    .line 21
    iget-object v2, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFObject;->clone()Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/nemustech/tiffany/world/TFObject;

    iput-object p0, v1, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    .line 29
    :goto_0
    return-object v1

    .line 23
    .restart local p0
    :cond_0
    const/4 v2, 0x0

    iput-object v2, v1, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;
    :try_end_0
    .catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 24
    .end local v1           #oc:Lcom/nemustech/tiffany/world/TFObjectContainer;
    .end local p0
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 26
    .local v0, e:Ljava/lang/CloneNotSupportedException;
    invoke-virtual {v0}, Ljava/lang/CloneNotSupportedException;->printStackTrace()V

    .line 27
    const/4 v1, 0x0

    .restart local v1       #oc:Lcom/nemustech/tiffany/world/TFObjectContainer;
    goto :goto_0
.end method

.method public getObject()Lcom/nemustech/tiffany/world/TFObject;
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    return-object v0
.end method

.method public setObject(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 1
    .parameter "object"

    .prologue
    .line 37
    iput-object p1, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    .line 38
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    if-eqz v0, :cond_0

    .line 39
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFObjectContainer;->mObject:Lcom/nemustech/tiffany/world/TFObject;

    invoke-virtual {v0, p0}, Lcom/nemustech/tiffany/world/TFObject;->setWrapperObject(Lcom/nemustech/tiffany/world/TFObjectContainer;)V

    .line 40
    :cond_0
    return-void
.end method
